x11: Avoid crashes in dnd
authorMatthias Clasen <mclasen@redhat.com>
Sat, 22 Feb 2020 22:44:36 +0000 (17:44 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 23 Feb 2020 00:02:13 +0000 (19:02 -0500)
commit833b56494692aa683144259852dd960691f6f033
tree2214033031a8360a7e767dd760f4c9256bc32357
parent7edfcc37a3c4e92dd7bca836426c5a6586dbeb53
x11: Avoid crashes in dnd

We were forgetting to clean up the ::xevent signal
handler in some error cases. Move the signal connection
later, when we know the drag is going forward, and
use g_signal_connect_object to make sure the signal
handler is not forgotten.
gdk/x11/gdkdrag-x11.c